package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysUserApply;

/**
 * 好友申请业务对象 sys_user_apply
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserApply.class, reverseConvertGenerate = false)
public class SysUserApplyBo extends BaseEntity {

    /**
     * 用户状态ID
     */
    @NotNull(message = "用户状态ID不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 标记人uid
     */
    private Long uid;

    /**
     * type=1,用户id，type=2群组id
     */
    private Long targetId;

    /**
     * 申请信息
     */
    private String msg;

    /**
     * 申请状态 1待审批 2同意
     */
    private Long status;

    /**
     * 1：申请加好友、2：申请加群
     */
    private Long type;

    /**
     * 阅读状态（1:已读、0：未读）
     */
    private Long readStatus;

    /**
     * 删除状态 0：未删 1 申请人删除 2 被申请人删除 3都删
     */
    private Long delStatus;

    /**
     * 备注
     */
    private String remark;


}
